package pers.lmd.domain;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author lmd
 * @Date 2023/4/7 13:12
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "响应实体对象")
public class R<T> {
    @Schema( description = "响应码",requiredMode = Schema.RequiredMode.REQUIRED)
    private String code;
    @Schema( description = "响应信息",requiredMode = Schema.RequiredMode.REQUIRED)
    private String message;
    @Schema( description = "响应数据")
    private T data;
}